package com.tjmc.recruit.finance.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tjmc.recruit.finance.api.vo.MemberInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 平台用户账户表
 *
 * @author recruit
 * @date 2024-11-25 14:18:09
 */
@Data
@TableName("platform_user_account")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "平台用户账户表")
public class PlatformUserAccountEntity extends Model<PlatformUserAccountEntity> {


	/**
	* 账户 ID，主键
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="账户 ID，主键")
	private Long id;

	/**
	 * 用户ID
	 */
	@Schema(description="用户ID")
    private Long accountId;

	/**
	* 企业 ID
	*/
    @Schema(description="企业 ID")
    private Long companyId;

	/**
	* 子账号可创建数量
	*/
    @Schema(description="子账号可创建数量")
    private Integer subAccountNum;

	/**
	* 短信条数
	*/
    @Schema(description="短信条数")
    private Integer smsNum;

	/**
	* 当前 E币余额
	*/
    @Schema(description="当前 E币余额")
    private BigDecimal eCoinNum;

	/**
	 * 职位发布数
	 */
	@Schema(description="职位发布数")
	private Integer publishJobNum;

	/**
	* 账户创建时间
	*/
    @Schema(description="账户创建时间")
    private LocalDateTime createdAt;

	/**
	* 账户更新时间
	*/
    @Schema(description="账户更新时间")
    private LocalDateTime updatedAt;

	/**
	 * 职位刷新次数-当天
	 */
	@TableField(exist = false)
	private Integer jobDayRefreshNum;
	/**
	 * 职位发布数
	 */
	@TableField(exist = false)
	private Integer jobPublishNum;
	/**
	 * 简历刷新次数-当天
	 */
	@TableField(exist = false)
	private Integer resumeDayRefreshNum;

	/**
	 * 会员信息
	 */
	@Schema(description = "会员信息")
	@TableField(exist = false)
	private MemberInfoVO memberInfoVO;


}
